<?php
/**
 * Created by PhpStorm.
 * User: linux
 * Date: 25/01/2018
 * Time: 4:04 PM
 */

namespace AbstractFactoryPattern2\Car;


use AbstractFactoryPattern2\AirCondi\Hair;
use AbstractFactoryPattern2\Engine\VEngine;

class BMW extends CarFactoryAbstract
{

    /**
     * 使用空调
     * @return mixed
     */
    public function installAirCondi()
    {
        $this->airCondi = new Hair();
    }

    /**
     * 使用发动机
     * @return mixed
     */
    public function installEngine()
    {
        $this->engine = new VEngine();
    }

}